//商品罗列封装
var productList=function(len,containbox){
    var allhtml='';
    var html="<div class='floor-box-item'>"+
        "<img src='../img/index/img.png' alt=''/>"+
        "<div class='item-text'>"+
        "<span>红玫瑰花鲜花速递礼盒</span>"+
        "<span>已售<span>78125</span>件</span>"+
        "</div>"+
        "<div class='item-price'>"+
        "<div>￥39</div>"+
        "<div>"+
        "<span>立省39元</span> <br/>"+
        "￥198"+
        "</div>"+
        "<div><button>加入购物车</button></div>"+
        "</div>"+
        "</div>";
    var moreHtml="<div class='floor-box-item click-more'> </div>";
    for(var i=0;i<len;i++){
        allhtml+=html;
    }
    allhtml+=moreHtml;
    containbox.append(allhtml)
};


//加载完成
$(function(){
    productList(7,$('.floor-box'))
});


